def ladder(n):
    return n * 7

def suibian_f(ctx):
    print("待修改")
    print(dir(ctx))
    print("target全称=", ctx.label)
    print("ctx可以访问传入参数: n=%d, n!=%d" % (ctx.attr.n, ladder(ctx.attr.n)))

print_info = rule(
    implementation = suibian_f,
    attrs = {
        "n": attr.int(default = 5),
    },
)
